<template>
  <div class="page-changeCity">
    <el-row>
      <i-select :cities="cities"/>
    </el-row>
    <el-row>
      <hot-city/>
    </el-row>
    <el-row>
      <el-col :span="24">
        <category :cities="cities"/>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import ISelect from '@/components/changeCity/iSelect'
import HotCity from '@/components/changeCity/hotCity'
import Category from '@/components/changeCity/category'

export default {
  name: 'ChangeCity',
  components: {
    ISelect,
    HotCity,
    Category
  },
  data() {
    return {
      cities: []
    }
  },
  async mounted() {
    const {
      status,
      data: { cities }
    } = await this.$axios.get('/geo/cities')
    if (status == 200) {
      this.cities = cities
    }
  }
}
</script>

<style lang="scss">
</style>
